package com.core.Temperatura;

import com.core.enumerators.TemperaturaType;

public class TemperaturaFactory {
	
	public static TemperaturaBase Create(TemperaturaType temperaturaType, float valueTobeconverted ){
		 switch (temperaturaType)
         {
             case Celcius:
                 return new Celcius(valueTobeconverted);
             case Kelvin:
                 return new Kelvin(valueTobeconverted);
             case Fahrenheit:
                 return new Fahrenheit(valueTobeconverted);
             default:
                 return null;
         }
	}
}
